'use strict';

function amount_even(collection) {

  //在这里写入代码
  var result=collection.filter(x=>x%2==0).reduce(function(pre,cur){
    return pre+cur;
  },0)
  return result;
}

module.exports = amount_even;
